package com.mineoj.service;

import com.mineoj.model.entity.QuestionThumb;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mineoj.model.entity.User;

/**
* @author 明月
* @description 针对表【question_thumb(题目点赞)】的数据库操作Service
* @createDate 2025-04-28 21:32:25
*/
public interface QuestionThumbService extends IService<QuestionThumb> {
    /**
     * 点赞
     *
     * @param questionId
     * @param loginUser
     * @return
     */
    int doQuestionThumb(long questionId, User loginUser);

    /**
     * 帖子点赞（内部服务）
     *
     * @param userId
     * @param questionId
     * @return
     */
    int doQuestionThumbInner(long userId, long questionId);
}
